<div class="form">

    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'comment-form',
        'enableClientValidation'=>true,
            'clientOptions'=>array(
            'validateOnSubmit'=>true,
            ),
            ));
    ?>

    <p class="note"><?php echo Yii::t('app','general.required');?></p>

    <div class="row">
        <?php echo $form->labelEx($model, 'author'); ?>
        <div class="input-group">
            <span class="input-group-addon glyphicon glyphicon-user" style="top:0"></span>
            <?php echo $form->textField($model, 'author', array('size' => 60, 'maxlength' => 128,'class'=>'form-control')); ?>
        </div>
        <?php echo $form->error($model, 'author'); ?>
    </div>

    <div class="row">

        <?php echo $form->labelEx($model, 'email'); ?>
        <div class="input-group">
            <span class="input-group-addon glyphicon glyphicon-envelope" style="top:0"></span>
            <?php echo $form->textField($model, 'email', array('size' => 60, 'maxlength' => 128,'class'=>'form-control','placeholder'=>'Email')); ?>
        </div>
        <?php echo $form->error($model, 'email'); ?>

    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'content'); ?>
        <div class="input-group">
            <span class="input-group-addon glyphicon glyphicon-pencil" style="top:0"></span>
            <?php echo $form->textArea($model, 'content', array('rows' => 6, 'cols' => 50,'class'=>'form-control')); ?>
        </div>
        <?php echo $form->error($model, 'content'); ?>
    </div>
    <div class="row buttons">
        <?php echo CHtml::htmlButton($model->isNewRecord ? Yii::t('app','comment.submit') : Yii::t('app','comment.save'), array('class' => 'btn btn-lg btn-primary', 'type' => 'submit')); ?>
    </div>
    <?php $this->endWidget(); ?>

</div><!-- form -->